<template>
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="流量趋势" name="first">
      <VisitAnalysis />
    </el-tab-pane>
    <el-tab-pane label="访问量" name="second">
      <VisitAnalysisBar />
    </el-tab-pane>
  </el-tabs>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import type { TabsPaneContext } from 'element-plus'
import VisitAnalysis from './VisitAnalysis.vue';
import VisitAnalysisBar from './VisitAnalysisBar.vue';

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>
